﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.IO;

namespace ConsoleReadWrite
{
    class Program
    {
        static void CwThreadFun()
        {
            Thread.Sleep(3000);

            Console.WriteLine("Interrupting the read line....");
        }
        static void Main(string[] args)
        {
            // MemoryStream ms = new MemoryStream();
            // ms.ReadTimeout = 10;
            
            /*
            Thread th = new Thread(CwThreadFun);
            th.IsBackground = true;
            th.Start();

            Console.Write("Please, type:");

            string input = Console.ReadLine();

            Console.WriteLine("I was interrupted...");

            Console.ReadKey();
             * */
        }
    }
}
